package com.ctgu.server.service;

import com.ctgu.server.dao.dto.GroupDto;
import com.ctgu.server.dao.dto.GroupUserDto;
import com.ctgu.server.dao.entity.Group;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ctgu.server.dao.vo.GroupVo;
import com.ctgu.server.dao.vo.Result;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ctgu
 * @since 2023-05-17
 */
public interface GroupService extends IService<Group> {

     Result addGroupRole(String userId, String groupId);

    List<GroupVo> getUserList(String id);

    Result createGroup(String userId, String groupName);

    Result deleteGroupUser(String userId, String groupId);

    Result deleteGroupList(String userId, String groupId);

    Result deleteByAdmin(String userId, String opId, String groupId);

    Result updateGroupUser(GroupUserDto groupUserDto);


    Result getGroupUser(String groupId);

    Result updateGroupInfo(String userId, GroupDto groupDto);
}
